// Mongoose的一切都始于一个Schema。每个schema映射到MongoDB的集合(collection)和定义该集合(collection)中的文档的形式
const mongoose = require('mongoose')

const schema = new mongoose.Schema({
    name:{type : String},
    need:{type : Number},
    now:{type : Number},
    end:{type : Number},
    address:{type:String},
    img:{type:String},
    didian:{type:String},
    leibie:{type:String},
    duixiang:{type:String},
    zhaomu:{type:String},
    time:{type:String},
    xxtime:{type:String},
    xq:{type:String},
})

 
module.exports = mongoose.model('Project',schema)